package com.webshopping.service.dict;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.webshopping.entry.Dict;
import com.webshopping.mapper.DictMapper;
import com.webshopping.util.PageUtil;

@Service
public class DService {
	@Autowired
	private DictMapper dictMapper;
	
	public List<Dict> queryDict(PageUtil spu){
		return dictMapper.queryDict(spu);
	}
	
	public List<String> queryDictType(){
		//System.out.println(dictData);
		return dictMapper.queryDictType();
	}
	
	public int addDict(Dict dict){
		return dictMapper.addDict(dict);
	}
	
}
